<!--
 * @Description: API接口
 * @ComposerRequire: 
 * @ComposerRemove: 
 * @Author: 阿海 <764882431@qq.com>
 * @Date: 2021-04-07 11:30:46
 * @LastEditTime: 2021-06-16 15:31:01
 * @LastEditors: 阿海
-->
<script>
    var server = "{:request()->domain()}";
  
   
    var api = {

        token_url:"{:url('api/Request/createJwt','',true,true)}",
        check_scan_url:"{:url('api/Request/tPost',['a'=>'a_login','m'=>'checkScanLogin'],true,true)}",
        check_login_url:"{:url('api/Request/tPost',['a'=>'a_login','m'=>'checkLogin'],true,true)}",
        qr_login_url:"{:url('api/Request/tGet',['a'=>'a_login','m'=>'getScanUrl'],true,true)}",
        login_url:"{:url('login/Login/login','',true,true)}",//登录页
        login_success_url:"{:url('cms/Index/index','',true,true)}",//登录成功页
        base_url:"{:url('cms/Index/index','',true,true)}",//跟路由
        consoles:"{:url('cms/Index/consoles')}",//hash跳转
        rules_url:"{:url('api/Request/tPost',['a'=>'cms','m'=>'getAllRules'],true,true)}",//用户的权限路由
        logout:"{:url('api/Request/tPost',['a'=>'a_login','m'=>'logout'],true,true)}",//退出登录接口
        login_user:"{:url('api/Request/tPost',['a'=>'cms','m'=>'getLoginMsg'],true,true)}",//登录用户信息
        login_user_info:"{:url('auth/Manager/managerInfo')}",//基本资料
        clear_url:"{:url('api/Request/tPost',['a'=>'cms','m'=>'clearFile'],true,true)}",//清除临时文件缓存
    };
</script>